﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Text.RegularExpressions;
using System.Web.UI;
using System.Web.UI.WebControls;
using KuaiPanSDK;

namespace DemoSDk
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            KuaiPan sdk = new KuaiPan();
            string url = sdk.GetAuthorizationUrl();

            Session["oauth_token"] = sdk.Token;
            Session["oauth_token_secret"] = sdk.TokenSecret;

            Response.Redirect(url);
        }
    }
}